import Layout from '@/layout'
export default [
	{
		path: '/redirect',
		component: Layout,
		hidden: true,
		children: [
			{
				path: '/redirect/:path(.*)',
				component: () => import('@/views/redirect/index')
			}
		]
	},
	{
		path: '/login',
		component: () => import('@/views/login/index'),
		hidden: true
	},
	{
		path: '/',
		component: Layout,
		children: [{
			path: '/',
			name: 'dashboard',
			component: () => import('@/views/dashboard'),
			meta: {
				title: '首页',
				icon: 'icon-shouye'
			}
		}

		]
	},
	{
		path: '/offline',
		component: Layout,
		name: 'offline',
		meta: {
			title: '下线模块',
			icon: 'icon-user'
		},
		children: [
			{
				path: '/offline-list',
				name: 'offline-list',
				component: () => import('@/views/offline/list'),
				meta: { title: '下线用户' }
			},
			
			{
				path: '/offline-agent-list',
				name: 'offline-agent-list',
				component: () => import('@/views/offline-agent/list'),
				meta: { title: '下线代理列表', }
			},
		
			{
				path: '/offline-details',
				name: 'offline-details',
				meta: { title: 'offline详情',hide: true},
				component: () => import('@/views/offline/details'), // Parent router-view
				
			}
		],
	},
	// {
	// 	path: '/offline-agent',
	// 	component: Layout,
	// 	name: 'offline-agent',
	// 	meta: {
	// 		title: '下线代理模块',
	// 		icon: 'icon-user'
	// 	},
		
	// },
	{
		path: '/moneylog',
		component: Layout,
		name: 'moneylog',
		meta: {
			title: '资金明细',
			icon: 'icon-user'
		},
		children: [
			{
				path: '/moneylog-list',
				name: 'moneylog-list',
				component: () => import('@/views/moneylog/list'),
				meta: { title: '资金明细列表' }
			}
		],
	},
	{
		path: '/bank-card',
		component: Layout,
		name: 'bank-card',
		meta: {
			title: '银行卡模块',
			icon: 'icon-user'
		},
		children: [
			{
				path: '/bank-card-list',
				name: 'bank-card-list',
				component: () => import('@/views/bank-card/list'),
				meta: { title: '银行卡列表' }
			}
		],
	},
	{
		path: '/withdraw',
		component: Layout,
		name: 'withdraw',
		meta: {
			title: '提现管理',
			icon: 'icon-user'
		},
		children: [
			{
				path: '/withdraw-list',
				name: 'withdraw-list',
				component: () => import('@/views/withdraw/list'),
				meta: { title: '提现列表' }
			},
			{
				path: '/withdraw-details',
				name: 'withdraw-details',
				component: () => import('@/views/withdraw/details'),
				meta: { title: '提现详情',hide: true }
			}
			
		],
	},
	// {
	// 	path: '/admin-menu',
	// 	component: Layout,
	// 	name: 'admin-menu',
	// 	meta: {
	// 		title: '管理员menu',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/admin-menu-list',
	// 		name: 'admin-menu-list',
	// 		component: () => import('@/views/admin/admin-menu/list'),
	// 		meta: {
	// 			title: '管理员menu列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/works',
	// 	component: Layout,
	// 	name: 'works',
	// 	meta: {
	// 		title: '长视频分类',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/works-list',
	// 		name: 'works-list',
	// 		component: () => import('@/views/works/list'),
	// 		meta: {
	// 			title: '分类列表',
	// 		},
	// 	},
	// 	{
	// 		path: '/worksTest',
	// 		component: () => import('@/views/works/test'), // Parent router-view
	// 		name: 'worksTest',
	// 		meta: {
	// 			title: '测试',
	// 			hide: false
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/tag',
	// 	component: Layout,
	// 	name: 'tag',
	// 	meta: {
	// 		title: '标签管理',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/tag-list',
	// 		name: 'tag-list',
	// 		component: () => import('@/views/tag/list'),
	// 		meta: {
	// 			title: '标签列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/banner',
	// 	component: Layout,
	// 	name: 'banner',
	// 	meta: {
	// 		title: '轮播图',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/banner-list',
	// 		name: 'banner-lis',
	// 		component: () => import('@/views/banner/banner-list'),
	// 		meta: {
	// 			title: '轮播图列表',
	// 		},
	// 	},
	// 	{
	// 		path: '/banner-class-list',
	// 		name: 'banner-class-list',
	// 		component: () => import('@/views/banner/banner-class-list'),
	// 		meta: {
	// 			title: '轮播图分类',
	// 		},
	// 	},

	// 	],
	// },
	// {
	// 	path: '/file-group',
	// 	component: Layout,
	// 	name: 'file-group',
	// 	hidden: true, //不在左侧导航显示
	// 	meta: {
	// 		title: '文件管理',
	// 		icon: 'icon-user',
	// 		hide: true
	// 	},
	// 	children: [{
	// 		path: '/fileGroupList',
	// 		name: 'fileGroupList',
	// 		component: () => import('@/views/file-group/list'),
	// 		meta: {
	// 			title: '文件分组列表',
	// 			hide: true
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/problem-feedback',
	// 	component: Layout,
	// 	name: 'problem-feedback',
	// 	meta: {
	// 		title: '问题反馈',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/problem-feedback-list',
	// 		name: 'problem-feedback-list',
	// 		component: () => import('@/views/problem-feedback/list'),
	// 		meta: {
	// 			title: '问题反馈列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/vip',
	// 	component: Layout,
	// 	name: 'vip',
	// 	meta: {
	// 		title: '会员',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/vip-list',
	// 		name: 'vip-list',
	// 		component: () => import('@/views/vip/list'),
	// 		meta: {
	// 			title: '会员列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/long-video',
	// 	component: Layout,
	// 	name: 'long-video',
	// 	meta: {
	// 		title: '长视频集合',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/long-video-list',
	// 		name: 'long-video-list',
	// 		component: () => import('@/views/long-video/list'),
	// 		meta: {
	// 			title: '长视频集合列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/bank-card',
	// 	component: Layout,
	// 	name: 'bank-card',
	// 	meta: {
	// 		title: '银行卡',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/bank-card-list',
	// 		name: 'bank-card-list',
	// 		component: () => import('@/views/bank-card/list'),
	// 		meta: {
	// 			title: '银行卡列表',
	// 		},
	// 	}
	// 	],
	// },
	// {
	// 	path: '/live-broadcast',
	// 	component: Layout,
	// 	name: 'live-broadcast',
	// 	meta: {
	// 		title: '直播列表',
	// 		icon: 'icon-user'
	// 	},
	// 	children: [{
	// 		path: '/live-broadcast-list',
	// 		name: 'live-broadcast-list',
	// 		component: () => import('@/views/live-broadcast/list'),
	// 		meta: {
	// 			title: '直播列表',
	// 		},
	// 	}
	// 	],
	// },
	{
		path: '/404',
		component: () => import('@/views/404'),
		hidden: true //不在左侧导航显示
	},
	{
		path: '/medium/index',
		component: () => import('@/components/Editor/medium'),//require(['@/components/Editor/medium'], resolve),
		hidden: true//不在左侧导航显示
	},
]